# Contributor: Sascha Brawer <sascha@brawer.ch>
# Maintainer: Sascha Brawer <sascha@brawer.ch>
pkgname=py3-ufonormalizer
_pyname=ufonormalizer
pkgver=0.4.1
pkgrel=0
pkgdesc="Normalize the XML and other data inside UFO font design sources"
url="https://github.com/unified-font-object/ufoNormalizer"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/u/$_pyname/$_pyname-$pkgver.zip"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	# Make files world-readable so others than root can run the installed script.
	chmod -R a+r "$pkgdir"/usr/lib/python3*/site-packages
}


sha512sums="376e43bc8e1a195d81faeb3e3551d91b1600cf26373132341129a4cbcb91d985cc990f61b752b2f1a420ac4da3833c591e52b00e038f16dcfd406d615eb2174e  ufonormalizer-0.4.1.zip"
